<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of report
 *
 * @author nstevens
 */
class report {

    public $quarter, $filepath, $status, $filename;

    public function __construct($row) {
        $this->quarter = $row['quarter'];
        $this->filepath = $row['filepath'];
        $this->status = $row['status'];
        $this->filename = $this->getFilename();
    }
    
    protected function getFilename(){
        $start = strripos($this->filepath, '/')+1;
        return substr($this->filepath, $start);
    }

}
?>
